package com.ld.poetry.aigc.codegeex.laihg;

import org.junit.Assert;
import org.junit.Test;

public class UnitTest {

    @Test
    public void testCase1() {
        FlightService service = new FlightService();
        int[] nums = {10, 9, 2, 5, 3, 7, 101, 18};
        int expected = 4;
        int result = service.lengthOfLIS(nums);
        Assert.assertEquals(expected, result);
    }

    @Test
    public void testCase2() {
        FlightService service = new FlightService();
        int[] nums = {1, 2, 3, 4, 5};
        int expected = 5;
        int result = service.lengthOfLIS(nums);
        Assert.assertEquals(expected, result);
    }

    @Test
    public void testCase3() {
        FlightService service = new FlightService();
        int[] nums = {5, 4, 3, 2, 1};
        int expected = 1;
        int result = service.lengthOfLIS(nums);
        Assert.assertEquals(expected, result);
    }

    @Test
    public void testCase4() {
        FlightService service = new FlightService();
        int[] nums = {10, 2, 3, 4, 5};
        int expected = 3;
        int result = service.lengthOfLIS(nums);
        Assert.assertEquals(expected, result);
    }

    @Test
    public void testCase5() {
        FlightService service = new FlightService();
        int[] nums = {1, 1, 1, 1, 1};
        int expected = 1;
        int result = service.lengthOfLIS(nums);
        Assert.assertEquals(expected, result);
    }
}